package com.xinzhi.service.impl;

import com.xinzhi.mapper.LfaMapper;
import com.xinzhi.service.LfaService;
import com.xinzhi.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LfaServicelmpl implements LfaService {

    @Autowired
    private LfaMapper lfaMapper;


    @Override
    public Result lynupdatess(String two_index) {
        if (two_index == null){
            return Result.error("参数不能为空");
        }
        int lynupdate = lfaMapper.lynupdate(two_index);
        return lynupdate > 0 ? Result.ok("删除成功") : Result.error("删除失败");
    }


}


